package store.lunangangster.bpmn.model;

import java.util.ArrayList;
import java.util.List;

public class Resource {

  protected String name;
  protected List<ResourceParameter> resourceParameters = new ArrayList<>();

  protected void addParameter(String name, String type, boolean isRequired) {
    resourceParameters.add(new ResourceParameter(name, type, isRequired));
  }

  protected class ResourceParameter {

    protected String name;
    protected String type;
    protected boolean isRequired;

    public ResourceParameter(String name, String type, boolean isRequired) {
      this.name = name;
      this.type = type;
      this.isRequired = isRequired;
    }

    public String getName() {
      return name;
    }

    public void setName(String name) {
      this.name = name;
    }

    public String getType() {
      return type;
    }

    public void setType(String type) {
      this.type = type;
    }

    public boolean isRequired() {
      return isRequired;
    }

    public void setRequired(boolean required) {
      isRequired = required;
    }
  }
}
